package com.qf.advice;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * @author Wy
 * @version V1.0
 * @Project MavenDemo
 * @Package com.qf.advice
 * @Description:
 * @Date 2022/6/6 18:43
 */

/**
 * 环绕通知
 */
public class MyAroundAdvice implements MethodInterceptor {
    public Object invoke(MethodInvocation methodInvocation) throws Throwable {
        System.out.println("===环绕通知");
        Object proceed = methodInvocation.proceed();
        System.out.println("====环绕通知");
        return proceed;
    }
}
